/**
 * Created by Hllinc on 2016-10-28 18:02.
 */
import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';

import {FrameComponent} from './frame.component';
import {PublishMessageComponent} from './publish-message/publish-message.component';

const frameRoutes: Routes = [
  {
    path: '',
    redirectTo: '/frame/publish_message',
    pathMatch: 'full'
  },
  {
    path: 'frame',
    redirectTo: '/frame/publish_message',
    pathMatch: 'full'
  },
  {
    path: 'frame',
    component: FrameComponent,
    // canActivate: [AuthGuard],
    children: [
      {
        path: 'publish_message',
        component: PublishMessageComponent
      },
    ]
  }
];

@NgModule({
  imports: [
    RouterModule.forChild(frameRoutes)
  ],
  exports: [
    RouterModule
  ]
})
export class FrameRoutingModule {
}
